package com.mzj.saas.mservice.eligible.repository;

import com.mzj.saas.mservice.eligible.entity.HouseApplyFlowOld;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface HouseApplyFlowOldRepository extends PagingAndSortingRepository<HouseApplyFlowOld, Long>, JpaSpecificationExecutor<HouseApplyFlowOld> {
    HouseApplyFlowOld findByApplyCodeAndDataId(String applyCode, String dataId);

    List<HouseApplyFlowOld> findByApplyCodeOrderByIdDesc(String applyCode);
}
